package com.example.demo.day0228;
public class TypeOfFood {
    public static void main(String[] args) {
        Food food = Food.Appetizer.SALAD;
        food = Food.MainCourse.LASAGNE;
        food = Food.Dessert.GELATO;
        food = Food.Coffee.CAPPUCNIIO;//可以将实现Food接口的枚举类里的对象转换为Food类型的
    }
}
